export type TableStructure = {
	tableName:string,
	tableColumns:string[],
	tableTail:string
}
export type GenTableInitDto = {
	name?:string,
	comment?:string,
	dbType?:string,
	columns?:GenTableColumnInitDto[]
}
export type GenTableColumnInitDto = {
	name:string,
	type:string,
	comment?:string,
	isPk:Common.BusinessStatus,
	defVal?:string,
	isRequired:Common.BusinessStatus
}
export enum PROCESS_SQL_CONSTANT  {
	CREATE_TABLE = "CREATE TABLE",
	// 空 , 非空
	NULL="NULL",NOT="NOT",
	// 主键 , 自动递增
	PRIMARY_KEY="PRIMARY KEY",AUTO_INCREMENT="AUTO_INCREMENT",
	//默认 , 注释
	DEFAULT="DEFAULT",COMMENT="COMMENT",
	// 默认的空格(用于切割)
	DEF_SKIP=" ",
}
export const dbTypeArr = [
	{label:"MYSQL",value:"MYSQL"}
]

export abstract class ProcessSql {
	// dbType:'MYSQL'|'ORACLE',
	abstract sqlVal:string

	abstract sql2InitDto():GenTableInitDto
}
